// pages/activity/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    active: 0,

    name: "",
    active_message:
      [
        {
          title: "文化艺术",
          image: "https://i0.hdslb.com/bfs/album/f6a344559e93eb448eacd9a0853a232eb9d66901.jpg",
          introduction: "信息系'守护青春','晴朗校园' '百城千校' 反诈安全课进入校园活动",
          time: "2021.09.25-2021.09.28",
          situation_people: "不限人数",
          startOrNot: "未开始",
          choose: 1,
        },
        {
          title: "身心健康",
          image: "https://i0.hdslb.com/bfs/album/357f717bdc0a1aac69a32867d4061ba1012db4c3.png",
          introduction: "防骗记心里,平安校园行,反诈校园卡片制作",
          time: "2021.08.15-2021.08.22",
          situation_people: "不限人数",
          startOrNot: "未开始",
          choose: 2
        },
        {
          title: "身心健康",
          image: "https://i0.hdslb.com/bfs/album/357f717bdc0a1aac69a32867d4061ba1012db4c3.png",
          introduction: "2021温州职业技术学院反诈活动",
          time: "2021.09.21-2021.09.25",
          situation_people: "不限人数",
          startOrNot: "未开始",
          choose: 3,
        },
        {
          title: "文化艺术",
          image: "https://i0.hdslb.com/bfs/album/6bf6581ba7f3069f62fd1624fd293f00940a447c.jpg",
          introduction: "会计2001反邪反毒反诈骗主题班会",
          time: "2021.09.28-2021.10.5",
          situation_people: "不限人数",
          startOrNot: "未开始",
          choose: 4,
        },
      ],
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  onChange(event) {
    // wx.showToast({
    //   title: `切换到标签 ${event.detail.name}`,
    //   icon: 'none',
    // });
  },
  navigator_detail(e) {
    let choose = e.currentTarget.dataset.choose
    wx.navigateTo({
      url: `/pages/activity-detail/index?choose=${choose}`,

    });
  },
})